package com.platinadesign.axa.event
{
	import com.platinadesign.axa.vo.Resource;
	import com.platinadesign.axa.vo.ResourceLoadingVO;
	import flash.events.Event;

	public class ResourceEvent extends Event
	{
		public static const RESOURCE_LOADED : String = 'ResourceEvent::RESOURCE_LOADED';

		public static const RESOURCE_LOAD_ERROR : String = 'ResourceEvent::RESOURCE_LOAD_ERROR';

		public static const ALL_RESOURCE_LOADED : String = 'ResourceEvent::ALL_RESOURCE_LOADED';

		public function get loadingVO() : ResourceLoadingVO
		{
			return _loadingVO;
		}

		public function get message() : String
		{
			return _message;
		}

		public function set message( value : String ) : void
		{
			_message = value;
		}

		public function get resource() : Resource
		{
			return _resource;
		}

		public function set resource( value : Resource ) : void
		{
			_resource = value;
		}

		private var _resource : Resource;

		private var _message : String;

		private var _loadingVO : ResourceLoadingVO;

		public function ResourceEvent( type : String, loadingVO : ResourceLoadingVO )
		{
			super( type );
			_loadingVO = loadingVO;
		}
	}
}